<!DOCTYPE html>
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <title></title>
  <link href="/styles/base.css" rel="stylesheet" type="text/css">
  <link href="/styles/wenda.css" rel="stylesheet" type="text/css">
  <link href="/styles/wenda_yegege.css" rel="stylesheet" type="text/css">
  <link rel="stylesheet" href="/styles/wenda_detail.css">

    <script type="text/javascript" src="/js/jquery/jquery.js"></script>
    <script type="text/javascript" src="/js/system/common.js"></script>
    <script type="text/javascript" src="/js/system/index.js"></script>
    <#-- 导入百度编辑器 -->
    <link href="/js/ueditor/themes/default/css/umeditor.css" type="text/css" rel="stylesheet">
    <script type="text/javascript" charset="utf-8" src="/js/ueditor/umeditor.config.js"></script>
    <script type="text/javascript" charset="utf-8" src="/js/ueditor/umeditor.min.js"></script>
    <script type="text/javascript" src="/js/ueditor/lang/zh-cn/zh-cn.js"></script>
    <script type="text/javascript" src="/js/system/wenda_answer.js"></script>
    <script src="/js/plugins/jquery-form/jquery.form.js"></script>
    <script>


    $(function () {

      //查询评论页面数据
      $("#answerSearchForm").ajaxForm(function (data) {
        $(".answer_page_list").html(data);
      });
      $("#answerSearchForm").submit();

      //保存或发表
      $("._j_submit_answer_btn").click(function () {

        // 如果没有输入编辑内容:提示请输入内容
        if(!ue.getContentTxt()){
          popup("请输入内容");
          return;
        }
        $("#answerForm").ajaxSubmit(function (data) {
          if(data.success){
            //重新刷新当前页面
            window.location.href = "/wenda/wendaDetail?id=" + data.data
          }else{
              $.messager.popup(data.msg);
            // popup(data.msg);
          }
        })
      })

    })


  </script>
</head>

<body style="position: relative;">

<!-- 顶部栏 -->
<#assign currentNav="wenda">

<#include "../common/navbar.ftl">

<div class="wrapper" data-qid="18507637" data-uid="94287547" id="_js_wrapper" data-is_answer_detail="0" data-source="1">
  <div class="detail-wrap clearfix">


    <!-- 问答主要内容 -->
    <div class="col-main">

      <!-- 面包屑导航 -->
      <div class="crumb">
        <a href="/wenda/" target="_blank">马蜂窝问答</a> &gt;
        <span>${question.title}</span>
      </div>

      <!-- 搜索区域 -->
      <#--<div class="search-box">

        <div class="search-box">
          <div class="search-panel" data-cs-t="wenda">
            <div class="clearfix _j_suggest_hd">
              <div class="sp-input">
                <input type="text" id="_j_wenda_seach_input" value=""
                       placeholder="提问前请先搜索，看看你的问题其他蜂蜂是否已经问过">
              </div>
              <input type="button" id="_j_wenda_seach_button" class="sp-button" data-mddid="0">
            </div>
          </div>
        </div>
      </div>-->


      <!-- 问题区域 -->
      <div class="q-detail" id="_js_askDetail">
        <!-- 问题详情 -->
        <div class="q-content">
          <#-- 问题的标题内容 -->
          <div class="q-title">
            <a href="/wenda/area-11228.html" target="_blank" class="location"><i></i>${(question.dest.name)!'全球'}
            </a>
            <h1>
              ${question.title}
            </h1>
          </div>


          <#-- 问题的详细内容 -->
          <div class="q-desc">
            ${(question.wendaQuestionContent.content)!}
          </div>

          <#--  问题其他信息 ： 标签  -->
          <div class="q-info1 clearfix">
            <#-- 标签 -->
            <div class="q-tags fl">
              <a class="a-tag" href="/wenda/tag-1298.html" target="_blank">${(question.dest.name)!'全球'}</a>
              <#list tags as tag>
                <a class="a-tag" href="/wenda/area-11228.html" target="_blank">${(tag.name)!'全球'}</a>
              </#list>
            </div>

            <#-- 提问人信息 -->
            <div class="pub-bar fr">
              <a href="/wenda/u/94287547/answer.html" class="photo" target="_blank">
                <img src="${question.isHideName?string("/images/default.png",question.author.headImgUrl)}"
                     width="16" height="16">
              </a>
              <a class="name" href="/wenda/u/94287547/answer.html"
                 target="_blank">${question.isHideName?string("匿名用户",question.author.nickname)}</a>
              <span class="time"><i
                        class="ico_phone"></i><span>${question.createTime?string('yyyy-MM-dd hh:mm:ss')}</span></span>
            </div>
          </div>
        </div>


        <#--  问题相关操作 -->
        <div class="q-operate clearfix">

          <div class="fr">

            <span class="atten-num">${vo.viewnum}人浏览</span>
            <#--<span class="atten-num"><span class="_j_same_num">0</span>人关注</span>-->

            <#--<a class="btn-atten _j_same_question " rel="nofollow" data-status="1"><span>关注</span></a>-->

            <a class="btn-answer _j_btn_goanswer" rel="nofollow" href="#answer">回答</a>
          </div>
        </div>


        <!-- 修改问题内容 -->
        <div class="qa-bar-wrap _j_qaBar hide" style="display: none;">
          <div class="qa-bar-content">
            <div class="q-operate">
              <span class="atten-num">2浏览</span>
              <span class="atten-num"><span class="_j_same_num">0</span>人关注</span>

              <a class="btn-atten _j_same_question " rel="nofollow" data-status="1"><span>关注</span></a>

              <a class="btn-answer _j_btn_goanswer" rel="nofollow">回答</a>
            </div>
            <div class="q-title">
              <a href="/wenda/area-11228.html" target="_blank" class="location"><i></i>伊斯坦布尔</a>
              <h1>伊斯坦布尔住在老城区有没有必要买交通卡</h1>
            </div>
          </div>
        </div>
      </div>




      <!-- 回答区域 -->
      <div class="answer-wrap">

        <#-- 回答列表数据查询 -->
        <form id = "answerSearchForm" action="/wenda/answerList" method="post">
          <input type="hidden" name="currentPage" id="currentPage" value="1">
          <input type="hidden" name="questionId"  value="${questionId!}">
        </form>

        <#--  回答分页数据显示   -->
        <div class="bd _j_pager_box answer_page_list">
        </div>



        <#-- 当前登陆用户信息 -->
        <div class="answer-add clearfix">
          <a name="answer"></a>
          <div class="aa-hd">
            <a class="aa-avatar"><img src="${(userInfo.headImgUrl)!'/images/default.png'}" class="photo"
                                      style="width: 50px;height: 50px"></a>
            <a class="aa-name">${(userInfo.nickname)!'未登陆'}</a>
          </div>

          <#-- 提交回答表单数据 -->
          <form id="answerForm" method="post" action="/wenda/saveAnswer">
            <input type="hidden" name="questionId" value="${questionId!}">

            <#-- 编辑框 -->
            <dl class="body cf">
              <dd id="content_div">
                <script id="editor" type="text/plain" style="width:100%;height:300px;"></script>
              </dd>
            </dl>
          </form>

          <div class="aa-ft">
            <div class="count">
              <#--<span class="word"><b id="_j_word_count">0</b>字</span>
              <span class="pic"><b id="_j_pic_count">0</b>图</span>
              <span class="pic"><b id="_j_video_count">0</b>视频</span>-->
            </div>
            <input class="btn-comment _j_submit_answer_btn" type="button" value="提交回答">
          </div>

        </div>


      </div>






    </div>

    <!-- 问答页面侧边栏 -->
    <div class="col-side" id="_js_right_side">

      <!-- 我要提问 -->
      <div class="btn-question">
        <a href="/wenda/input" class="btn-ask btn-ask2" target="_blank">我要提问</a>
      </div>

      <!-- 广告图片 -->
       <div class="ad-box" data-cs-t="wenda">
           <div id="qa_recommend_pagelet" class="pagelet-block" data-api=":qa:pagelet:TopRecommendApi"
                data-params="{&quot;mddid&quot;:11228,&quot;title&quot;:&quot;\u4f0a\u65af\u5766\u5e03\u5c14\u4f4f\u5728\u8001\u57ce\u533a\u6709\u6ca1\u6709\u5fc5\u8981\u4e70\u4ea4\u901a\u5361&quot;}"
                data-async="1" data-controller="/js/qa/ARecommentQu">
               <div class="mod mod-slide">
                   <ul class="slide-img" data-cs-p="topic_recommend_pic">
                       <li style="display: block; opacity: 0.493717;">
                           <a target="_blank" href="https://imfw.cn/l/26765236"><img
                                   src="https://n3-q.mafengwo.net/s13/M00/02/F6/wKgEaVx2WNSATa4-AADhkqCkWA468.jpeg"></a>

                       </li>
                       <li style="display: none;">
                           <a target="_blank" href="http://www.mafengwo.cn/i/11229838.html"><img
                                   src="https://p2-q.mafengwo.net/s12/M00/BA/6B/wKgED1v3qo6AZ_5BAADecMeJWIo38.jpeg"></a>

                       </li>
                       <li style="display: none;">
                           <a target="_blank" href="https://imfw.cn/l/20198985"><img
                                   src="https://n4-q.mafengwo.net/s12/M00/AD/19/wKgED1u7Dz2Af3AGAADIIpXjeuo88.jpeg"></a>

                       </li>
                   </ul>
                   <div class="slide-trigger " id="slide_btn">
                       <span class="on"></span>
                       <span class=""></span>
                       <span class=""></span>
                   </div>
               </div>
           </div>
       </div>


       <div style="margin-top:0px;margin-bottom: 20px;">
           <div id="pagelet-block-ff98a46814a567971111fc1097ad1ad7" class="pagelet-block"
                data-api=":qa:pagelet:ads"
                data-params="{&quot;mddid&quot;:11228,&quot;tags&quot;:[&quot;\u4ea4\u901a&quot;,&quot;\u4f0a\u65af\u5766\u5e03\u5c14&quot;]}"
                data-async="1" data-controller=""></div>
       </div>

       <!-- 相关问题 -->
       <div id="qa_relation_question_pagelet" class="pagelet-block" data-api=":qa:pagelet:RelationQuestionApi"
            data-params="{&quot;qid&quot;:18507637}" data-async="1" data-controller="">
           <div class="related-qt">
               <div class="tit">相关问题</div>
               <ul class="bd">
                   <li><a href="/wenda/detail-3261953.html" titile="求推荐伊斯坦布尔老城区酒店">求推荐伊斯坦布尔老城区酒店</a>
                       <span>2 回答</span></li>
                   <li><a href="/wenda/detail-6584724.html" titile="伊斯坦布尔新老城区距离问题！！！">伊斯坦布尔新老城区距离问题！！！</a> <span>2 回答</span>
                   </li>
                   <li><a href="/wenda/detail-12530544.html" titile="伊斯坦布尔欧洲机场到老城区">伊斯坦布尔欧洲机场到老城区</a>
                       <span>5 回答</span></li>
                   <li><a href="/wenda/detail-17943743.html" titile="伊斯坦布尔住在新城区还是老城区？环境哪个比较好？">伊斯坦布尔住在新城区还是老城区？环境哪个比较好？</a>
                       <span>30 回答</span></li>
                   <li><a href="/wenda/detail-10457228.html" titile="伊斯坦布尔亚洲机场到老城区？">伊斯坦布尔亚洲机场到老城区？</a>
                       <span>3 回答</span></li>
               </ul>
           </div>
       </div>
    </div>
  </div>
</div>

<!-- 尾部内容 -->
<#include "../common/footer.ftl">

</body>

</html>